<?php



class LogTransactionMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.LogTransactionMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(LogTransactionPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(LogTransactionPeer::TABLE_NAME);
		$tMap->setPhpName('LogTransaction');
		$tMap->setClassname('LogTransaction');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('TRANSACTION_IDEN', 'TransactionIden', 'VARCHAR', true, 18);

		$tMap->addColumn('ENTRY_DATE', 'EntryDate', 'TIMESTAMP', true, null);

		$tMap->addColumn('TRANSACTION_TYPE', 'TransactionType', 'VARCHAR', true, 45);

		$tMap->addColumn('TRANSACTION_SUBTYPE', 'TransactionSubtype', 'VARCHAR', true, 45);

		$tMap->addColumn('IDEN1', 'Iden1', 'VARCHAR', true, 20);

		$tMap->addColumn('TYPE1', 'Type1', 'VARCHAR', true, 45);

		$tMap->addColumn('IDEN2', 'Iden2', 'VARCHAR', true, 20);

		$tMap->addColumn('TYPE2', 'Type2', 'VARCHAR', true, 45);

		$tMap->addColumn('IDEN3', 'Iden3', 'VARCHAR', true, 20);

		$tMap->addColumn('TYPE3', 'Type3', 'VARCHAR', true, 45);

		$tMap->addColumn('IDEN4', 'Iden4', 'VARCHAR', true, 20);

		$tMap->addColumn('TYPE4', 'Type4', 'VARCHAR', true, 45);

		$tMap->addColumn('DEBIT', 'Debit', 'DOUBLE', true, null);

		$tMap->addColumn('CREDIT', 'Credit', 'DOUBLE', true, null);

		$tMap->addForeignKey('DOCUMENT_IDEN', 'DocumentIden', 'VARCHAR', 'document', 'DOCUMENT_IDEN', true, 20);

	} 
} 